package com.wealth.scsj.p_app.view.activity.depositmodel;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.wealth.scsj.p_app.R;
import com.wealth.scsj.p_app.view.activity.BaseActivity;
import com.wealth.scsj.p_app.adapter.ReturnDepositDetailsAdapter;

/**
 * 押金退款详情查看
 */
public class ReturnDepositDetailsPageActivity extends BaseActivity implements View.OnClickListener{

    private TextView mToolbarTitle;
    private ImageView mToolbarTitleLeft;
    private RecyclerView mReturnDepositDetailsRv;
    ReturnDepositDetailsAdapter mAdapter;


    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_return_deposit_details_page);
    }

    @Override
    protected void initView() {

        mToolbarTitle = findViewById(R.id.toolbar_title);
        mToolbarTitleLeft = findViewById(R.id.toolbar_title_left);
        mReturnDepositDetailsRv = findViewById(R.id.return_deposit_details_rv);
        mReturnDepositDetailsRv.setLayoutManager(new LinearLayoutManager(
                ReturnDepositDetailsPageActivity.this, LinearLayoutManager.VERTICAL, false));
//        mReturnDepositDetailsRv.addItemDecoration(new MyDecoration(this,LinearLayoutManager.HORIZONTAL));
    }

    @Override
    protected void initListener() {

        mToolbarTitleLeft.setOnClickListener(this);
    }

    @Override
    protected void initData() {
        mToolbarTitle.setText("押金退款进度");
    }

    @Override
    public void onClick(View v) {

        switch (v.getId()){
            case R.id.toolbar_title_left:
                finish();
                break;
        }
    }
}
